package com.gzz.orchid.main.facade.rsocket;

import jakarta.annotation.PostConstruct;
import org.springframework.messaging.rsocket.RSocketRequester;
import org.springframework.stereotype.Component;

/**
 * 服务代理
 *
 * @author higmd
 */
@Component
public class RSocketComponent {
    private final RSocketRequester.Builder requesterBuilder;

    public RSocketComponent(RSocketRequester.Builder requesterBuilder) {
        this.requesterBuilder = requesterBuilder;
    }

    @PostConstruct
    public void initRSocket() {
        RSocketRequester rsocketRequester = requesterBuilder.tcp("localhost", 7000);
    }

}
